<style type="text/css">
    @media (max-width: 375px) {
        .edit-form tr td input {
            width: 100%;
        }

        .edit-form tr th:first-child, .edit-form tr td:first-child {
            width: 20%;
        }

        .edit-form tr th:nth-last-of-type(-n+2), .edit-form tr td:nth-last-of-type(-n+2) {
            display: none;
        }
    }

    .edit-form table > tbody > tr td a.btn-delcfg {
        visibility: hidden;
    }

    .edit-form table > tbody > tr:hover td a.btn-delcfg {
        visibility: visible;
    }
    #faupload-avatar{
        position: absolute;
        margin-left: 2px;

    }
    .profile-user-img{
        margin: 0 auto;
        width: 200px;
        padding: 3px;
        border: 3px solid #d2d6de;
    }

</style>
<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <div class="panel-lead"><em>核心技术配置</em>前端核心配置的信息</div>
        <ul class="nav nav-tabs">
            <li class="active"><a href="#" data-toggle="tab">信息配置</a></li>

        </ul>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <!--@formatter:on-->
            <div class="tab-pane fade active in" id="tab-basic">
                <div class="widget-body no-padding">
                    <form id="basic-form" novalidate class="edit-form form-horizontal nice-validator n-default n-bootstrap" role="form" data-toggle="validator" method="POST" action="{:url('site.core/info')}" novalidate="novalidate">
                        {:token()}
                        <table class="table table-striped">
                            <tbody>
                            <tr data-favisible data-name="name" class="">
                                <td>显示名称</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <input type="text" name="row[core_name]" value="{$data.core_name.value}" class="form-control" data-rule="required" data-tip="{$data.core_name.tip}">
                                        </div>
                                    </div>
                                </td>
                                <td></td>
                            </tr>
                            <tr data-favisible data-name="version" class="">
                                <td>跳转链接</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <input type="text" name="row[core_url]" value="{$data.core_url.value}" class="form-control" data-rule="required" data-tip="{$data.core_url.tip}">
                                        </div>
                                        <div class="col-sm-4"></div>
                                    </div>

                                </td>
                                <td></td>
                            </tr>
                            <tr data-favisible data-name="beian" class="">
                                <td>简介</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <textarea id="c-intro" class="form-control " rows="5" name="row[core_intro]" data-rule="required" cols="50" data-tip="{$data.core_intro.tip}">{$data.core_intro.value}</textarea>
                                        </div>
                                    </div>
                                </td>
                                <td></td>
                            </tr>
                            <tr data-favisible data-name="video" class="">
                                <td>图片<i style="color: red;font-size: 10px;">(尺寸:466*328)</i></td>
                                <td>
                                    <div class="profile-avatar-container">
                                        <img class="profile-user-img" src="{$data.core_img.value}"></img>
                                        <input type="hidden" name="row[core_img]" id="video_input" value="{$data.core_img.value}" class="form-control">
                                        <button type="button" id="faupload-avatar" class="faupload" data-input-id="c-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                            <tfoot>
                            <tr>
                                <td></td>
                                <td>
                                    <div class="layer-footer">
                                        <button type="submit" class="btn btn-primary btn-embossed">{:__('OK')}</button>
                                        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                                    </div>
                                </td>
                                <td></td>
                                <td></td>
                            </tr>
                            </tfoot>
                        </table>
                    </form>
                </div>
            </div>

            <!--@formatter:on-->
        </div>
    </div>
</div>
